package thinking

object 嵌套匹配 {
  def main(args: Array[String]): Unit = {

  }

}

abstract class Item

case class Book(description: String, price: Double) extends Item

case class Bundle(description: String, discount: Double, item: Item*) extends Item
